package com.elecbook.rpc.feignclient;

import com.elecbook.auth.model.po.User;
import com.elecbook.base.result.Result;
import com.elecbook.rpc.feignclient.fallback.AuthServiceClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "auth-service", fallbackFactory = AuthServiceClientFallbackFactory.class)
public interface UserServiceClient {
    @PostMapping(value = "/auth/user/r/userInfos")
    Result<List<User>> getUserInfoByIds(@RequestBody List<Integer> ids);
}